body,
dl,
dd,
ul,
ol,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
input,
textarea,
p,
hr,
thead,
tbody,
tfoot,
th,
td {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

html {
    border: none;
    -ms-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    overflow-y: scroll;
}

:root {
    overflow-y: auto;
    overflow-x: hidden;
}

:root body {
    position: absolute;
}

body {
    margin: 0;
    font: normal 12px/1.5 Arial, Helvetica, sans-serif;
    color: #575757;
    min-height: 100vh;
    width: 100vw;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}
// body.scroll-fixed {
//     // position: fixed;
//     height: 100vh;
//     overflow: hidden;
// }

// #__nuxt {
//     position: absolute;
//     left: 0;
//     top: 0;
//     width: 100%;
//     overflow-x: hidden;
// }

// #__layout {
//     position: relative;
//     width: 100vw;
// }

// :root {
//     overflow-y: auto;
//     overflow-x: hidden;
//     body {
//         position: absolute;
//     }
// }

/*----------------------滚动条--------------------------------*/
// *::-webkit-scrollbar {
//     max-width: 6px;
//     max-height: 8px;
// }

// *::-webkit-scrollbar {
//     max-width: 6px;
//     max-height: 8px;
// }

*::-webkit-scrollbar-track {
    background-color: #e8e8e8;
    border: none;
    display: none;
}

*::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
    border-radius: 10px;
    width: 8px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #c0c0c0;
    border-radius: 10px;
}

button,
input,
select,
textarea {
    font-family: Arial, Helvetica, sans-serif;
}

b,
strong {
    font-weight: bold;
}

i,
em {
    font-style: normal;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* table th,table td{border:1px solid #D9D9D9;padding:5px;} */
table th {
    border-bottom-width: 2px;
    border-bottom-color: #ccc;
}

img {
    border: 0 none;
    width: auto;
    vertical-align: top;
    height: auto;

    &[src=""],
    &:not([src]) {
        opacity: 0;
    }

    &[lazy="loading"] {
        background-image: url(@/assets/images/loading.gif);
        background-position: center;
        background-size: 32px 32px;
        background-repeat: no-repeat;
        text-indent: -999em;
    }

    &[lazy="error"] {
        background-image: url(@/assets/images/error.png);
        background-position: center;
        background-size: 98px 98px;
        background-repeat: no-repeat;
        text-indent: -999em;
    }

    &[lazy="loaded"] {
    }
    // rendering: crisp-edges;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
    vertical-align: baseline;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button[disabled],
input[disabled] {
    cursor: default;
}

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

input[type="search"] {
    -webkit-appearance: textfield;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

input:focus {
    outline: none;
}

select[size],
select[multiple],
select[size][multiple] {
    border: 1px solid #aaa;
    padding: 0;
}

article,
aside,
details,
summary,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
    display: block;
}

audio,
canvas,
video,
progress {
    display: inline-block;
}

body {
    background: #fff;
}

input::-webkit-input-speech-button {
    display: none;
}
a,
button,
input,
textarea {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    outline: none;
}

figure {
    margin: 0;
}

// figure > img {
//     width: 100%;
//     height: 100%;
// }

cite {
    display: block;
    font-style: normal;
    padding: 0;
    margin: 0;
}

fieldset {
    display: block;
    border: none;
    margin: 0;
    padding: 0;
}

button {
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    background: none;
    color: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    white-space: nowrap;
    font-family: Roboto-Medium, Roboto;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    transition: all 0.2s;

    &:hover {
        color: #ea4c89;
    }

    &:active {
        color: #b32f61;
    }

    // 主要按钮
    &[type="primary"] {
        background: #ea4c89;
        border: none;
        color: #ffffff;

        &:hover {
            background: #c94175;
            color: #ffffff;
        }
        &:active {
            background: #b32f61;
            color: #ffffff;
        }
    }

    &[type="border"] {
        background: #ffffff;
        border-color: #ea4c89;
        color: #ea4c89;

        &:hover {
            background-color: #ffedf4;
        }
    }

    // 禁用
    &[disabled],
    &.disabled {
        background: #f6f6f6;
        border: 1px solid #e6e6e6;
        color: #919191;
        cursor: default;

        &:hover {
            background: #f6f6f6;
            color: #919191;
        }
    }
}

a {
    &:hover {
        color: #ea4c89;
    }

    &:active {
        color: #c94175;
    }

    &[disabled="true"] {
        color: #919191;
    }
}

input {
    width: 100%;
    height: 40px;
    background: #ffffff;
    box-sizing: border-box;
    padding: 11px 12px;
    line-height: 16px;
    color: #000;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid #e6e6e6;
    font-family: Roboto-Regular, Roboto;
    font-weight: 400;
    font-size: 14px;

    &::placeholder {
        font-size: 14px;
        color: #757575;
    }

    &:hover {
        border-color: #c7c7c7;
    }

    &:focus {
        border-color: #f6b2cd;
        box-shadow: 0 0 1px 1px #f6b2cd;
    }
}

// 个人中心提示框偏移
body.body-user {
    background-color: #f8f8f8;
}

// 图片预览打开
body.viewer-open {
    padding-right: 0 !important;
}

/* 选中文字时颜色 */
/* body::selection {  color: #000;  background-color: #E84893;  text-shadow: none;}body::-moz-selection {  color: #000;  background-color: #E84893;  text-shadow: none;} */
::selection {
    color: #555555;
    background-color: #f9e0e9;
}

::-moz-selection {
    color: #555555;
    background-color: #f9e0e9;
}

::-webkit-selection {
    color: #555555;
    background-color: #f9e0e9;
}

// quill富文本编辑器
.ql-align-center {
    text-align: center;
}

.ql-align-right {
    text-align: right;
}

.ql-align-justify {
    text-align: justify;
}

//nuxt layout的过渡
// .layout-enter-active,
// .layout-leave-active {
//     transition: opacity 0.5s;
// }
// .layout-enter,
// .layout-leave-active {
//     opacity: 0;
// }

.dialog-confirm {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 76px;
    pointer-events: none;
    z-index: 99;
    opacity: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;

    &.active {
        opacity: 1;
        pointer-events: all;
    }

    cite {
        position: relative;
        margin: 0 auto;
        max-width: 1100px;
        max-height: calc(100vh - 160px);
        background: #fff;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding: 20px;

        & > div {
            font-size: 16px;
            line-height: 30px;
        }

        & > i {
            z-index: 1;
            position: absolute;
            right: 0;
            top: 0;
            width: 40px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            font-size: 14px;
            color: #686868;
            font-weight: normal;
            cursor: pointer;

            i {
                font-size: 18px;
            }

            &:hover {
                color: #ea4c89;
            }
        }
    }

    h6 {
        margin-top: 20px;
        display: flex;

        span {
            height: 40px;
            line-height: 38px;
            padding: 0 20px;
            border-radius: 6px;
            border: 1px solid #c6c6c6;
            box-sizing: border-box;
            font-family: Arial;
            font-weight: normal;
            background: none;
            color: #000000;
            font-size: 16px;
            transition: all 0.2s;
            cursor: pointer;

            & + span {
                margin-left: 10px;
            }

            &:hover {
                border-color: #ea4c89;
                color: #ea4c89;
            }

            // 主要按钮
            &[primary] {
                background: #ea4c89;
                border-color: #ea4c89;
                color: #ffffff;

                &:hover {
                    background: #c94175;
                    color: #ffffff;
                }
            }
        }
    }
}

.viewer-image-preview {
    .viewer-footer {
        pointer-events: none;
        width: 100%;
        height: 100%;
    }
    .viewer-transition {
        background-color: #fff;
    }

    .viewer-prev,
    .viewer-next {
        position: absolute !important;
        left: 20px;
        top: 50%;
        margin-top: -20px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        pointer-events: all;

        &::before {
            position: absolute;
            left: 50%;
            top: 50%;
            margin-left: -10px;
            margin-top: -10px;
        }
    }

    .viewer-next {
        left: auto;
        right: 20px;
    }
}
// 移动端通用适配

@media (max-width: 960px) {
    body * {
        outline: none;
    }
    body.wap-dialog {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .dialog-layout.dialog-responsive {
        padding: 0;
        background: none;
        overflow: hidden;

        .dialog-content {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            max-width: initial;
            max-height: initial;
            margin: 0;
            border-radius: 0;

            & > h2 {
                font-size: 16px;
                line-height: 32px;
                padding: 10px;
                font-weight: bold;

                &::before {
                    background-color: #f0f0f0;
                }
            }
        }
    }
}

// 动画
@keyframes show-item {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes hide-item {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
